#include "stdFollowParticle.h"


stdFollowParticle::stdFollowParticle()
{
}

bool stdFollowParticle::check_remove()
{
	return _remove;
}

void stdFollowParticle::updata()
{
	_time--;
	if (_time < 0)
	{
		_remove = true;
		return;
	}
}

void stdFollowParticle::reset()
{
	_remove = false;
}

void stdFollowParticle::draw()
{
	al_draw_scaled_bitmap(_bitmap.bitmap[0], 0, 0, _bitmap.w, _bitmap.h, _bitmap.p.x,
		_bitmap.p.y, _round, _round, 0);
}

void stdFollowParticle::setinformation(Bitmap bitmap, int time,
	float color, float round)
{
	_remove = false;
	_bitmap = bitmap;
	_time = time;
	_color = color;
	_round = round;
}